package com.yjd.comm.news.model;

import com.yjd.comm.base.model.Model;

/**
 * <b>description</b>：新闻类目模型<br>
 * <b>time</b>：2014-11-05 16:20:59 <br>
 * <b>author</b>：  percy-chen@hotmail.com
 */
public class CategoryModel extends Model {

	/**
	* @Fields serialVersionUID
	*/
	private static final long serialVersionUID = 1L;
	//目录id
	private Long catid;
	//目录名字
	private String name;
	//目录名字列表，用于编辑页面接收参数
	private String[] names;
	private String enname;
	private String tempId;
	//pids列表，用于编辑页面接收参数
	private Integer[] pids;
	//新增临时id列表，用于编辑页面存放临时id
	private String[] tempIds;
	/**
	 * 1.单一页面 2.列表页面
	 */
	private Integer type;
	private Integer modelid;
	//父菜单
	private Integer lid;
	//层级
	private Integer ins;
	//是否有子节点 
	private Integer child;
	//子节点列表
	private String arrchildid;
	private String index;
	private String list;
	private String show;
	//菜单图标
	private String image;
	private Integer pid;
	//后台内容管理中  点击wap的链接是否带view
	//1带view  2 不带view
	private Integer url_type;

	public Integer getUrl_type() {
		return url_type;
	}

	public void setUrl_type(Integer url_type) {
		this.url_type = url_type;
	}

	public Long getCatid() {
		return catid;
	}

	public void setCatid(Long catid) {
		this.catid = catid;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getEnname() {
		return enname;
	}

	public void setEnname(String enname) {
		this.enname = enname;
	}
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getModelid() {
		return modelid;
	}

	public void setModelid(Integer modelid) {
		this.modelid = modelid;
	}
	public Integer getLid() {
		return lid;
	}

	public void setLid(Integer lid) {
		this.lid = lid;
	}
	public Integer getIns() {
		return ins;
	}

	public void setIns(Integer ins) {
		this.ins = ins;
	}
	public Integer getChild() {
		return child;
	}

	public void setChild(Integer child) {
		this.child = child;
	}
	public String getArrchildid() {
		return arrchildid;
	}

	public void setArrchildid(String arrchildid) {
		this.arrchildid = arrchildid;
	}
	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}
	public String getList() {
		return list;
	}

	public void setList(String list) {
		this.list = list;
	}
	public String getShow() {
		return show;
	}

	public void setShow(String show) {
		this.show = show;
	}
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}
	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getTempId() {
		return tempId;
	}

	public void setTempId(String tempId) {
		this.tempId = tempId;
	}

	public String[] getNames() {
		return names;
	}

	public void setNames(String[] names) {
		this.names = names;
	}

	public Integer[] getPids() {
		return pids;
	}

	public void setPids(Integer[] pids) {
		this.pids = pids;
	}

	public String[] getTempIds() {
		return tempIds;
	}

	public void setTempIds(String[] tempIds) {
		this.tempIds = tempIds;
	}
	
	public String getTypeStr(){
		if(this.type!=null){
			switch(this.type){
			case 0:
				return "内置栏目";
			case 1:
				return "单一数据";
			case 2:
				return "复合数据";
			case 3:
				return "静态页面";
			default:
				return "";
			}
		}else{
			return "";
		}
	}

}
